<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of RegisterTypeInfo
 *
 * @author ziad
 */
class RegisterTypeInfo extends BaseUsersLoginForm {

    public function configure() {
        $this->useFields(array('package_id'));
        $packages = array('Basic', 'Golden', 'Platinum');
        
        # Edit defualt widget Schema
        $this->widgetSchema['step'] = new sfWidgetFormInputHidden();
        
//        $this->widgetSchema['package_id'] = new sfWidgetFormSelectRadio($packages);
        $this->widgetSchema['package_id'] = new sfWidgetFormChoice(array('choices'=>$packages, 'expanded'=>true));
        
        $this->validatorSchema['package_id'] = new sfValidatorChoice(array('choices'=>array(0, 1, 2)));

        $this->validatorSchema->addOption('allow_extra_fields', true);

        $this->setDefaults(array('step' => 3));
    }
}

?>
